package com.example.testcentral.designpattern.decoratorpattern

/**
 * File Name: Mocha
 * Author: zhangzhenzhong
 * Created on: 2024/7/9
 * Description:具体装饰者
 */
class Mocha:Baverage {

    lateinit var baverage:Baverage
    constructor(baverage: Baverage){
        this.baverage=baverage
        description+="--mocha"
    }
    override var cost: Float
        get() = 0.6f+cost
        set(value) {}
}